<?php
	//----------------------- INPUT ELEMENTS -------------------//
	$info 			= 	new Zendvn_System_Info();
	$admin_info		=	$info->getMemberInfo();
	

	
	
	
	// Thong tin khach hang
	$diemdauvao				= $this->Khachhang['diemdauvao'];
	$diemdaura  			= $this->Khachhang['diemdaura'];
	$diemgiuaky  			= $this->Khachhang['diemgiuaky'];
	$diemgiaovien			= $this->Khachhang['diemgiaovien'];
	$diemcoach  			= $this->Khachhang['diemcoach '];
	$diemlophoc  			= $this->Khachhang['diemlophoc'];
	
	$sobuoidiemdanh			= $this->Khachhang['sobuoidiemdanh'];
	$note 					= nl2br($this->Khachhang['note']);
	$name  					= $this->Khachhang['name'];
	
	$phone					= $this->Khachhang['phone'];
	$email					= $this->Khachhang['email'];
	$lop					= $this->Item['lophoc_name'];
	$khoa					= $this->Item['khoahoc_name'];
	$code  					=  strtoupper($this->Khachhang['code']);
	
?>

<div class="left_content">
	<?php echo $this->render($this->arrParam['controller'] . '/toolbar/left.php');?>
</div>

<div class="right_content">
	<div class="appContent">
		<form name="appForm" method="post" action="" enctype="multipart/form-data" id="hopdong">
			<?php echo $this->render($this->arrParam['controller'] . '/toolbar/index.php');?>
		 	<?php
				if($this->arrParam['save'] == 'ok'){
					echo '<div class="thongbaoThanhCong goc5">Xử lý dữ liệu thành công</div>';
				} 
			?>
			<?php
				if (count($this->messageError)>0) {
					echo '<div class="thongbaoError goc5">Có lỗi trong quá trình xử lý</div>';	
				}
			?>
			<div id="tabs">
				<ul>
					<li id="tab1"><a href="#tabs-1">Thông tin chung</a></li>
				</ul>
				<div id="tabs-1">
					<div class="tblForm">
						<div class="tbl_title">Thông tin khách hàng</div>
						<div class="tbl_content">
							<table class="tbl tbl_info">
								<tr>
									<td class="label">Tên khách hàng:</td>
									<td><?php echo $name .' - '. $code; ?></td>
									
								</tr>
								<tr>
									<td class="label">Khóa học:</td>
									<td><?php echo $khoa; ?></td>
								</tr>
								<tr>
									<td class="label">Lớp học:</td>
									<td><?php echo $lop; ?></td>
								</tr>
								<tr>
									<td class="label">Mã học viên:</td>
									<td><?php echo $code; ?></td>
								</tr>
								<tr>
									<td class="label">Số điện thoại:</td>
									<td><?php echo $phone; ?></td>
								</tr>
								<tr>
									<td class="label">Email:</td>
									<td><?php echo $email; ?></td>
								</tr>
								<tr>
									<td class="label">Ghi chú:</td>
									<td colspan="3"><?php echo $note; ?></td>
								</tr>
								
								
								
								
							</table>
						</div>
						
						
						
						<?php
						$diemdauvao = 0;
						if(isset($this->Item['diemdauvao'])){
							$diemdauvao = $this->Item['diemdauvao'];
						} 
						
						$diemdaura = 0;
						if(isset($this->Item['diemdaura'])){
							$diemdaura = $this->Item['diemdaura'];
						}
						
						$sobuoidiemdanh = 0;
						if(isset($this->Item['sobuoidiemdanh'])){
							$sobuoidiemdanh = $this->Item['sobuoidiemdanh'];
						}
						
						$diemgiuaky = 0;
						if(isset($this->Item['diemgiuaky'])){
							$diemgiuaky = $this->Item['diemgiuaky'];
						}
						
						$diemgiaovien = 0;
						if(isset($this->Item['diemgiaovien'])){
							$diemgiaovien = $this->Item['diemgiaovien'];
						}
						
						$diemcoach = 0;
						if(isset($this->Item['diemcoach'])){
							$sobuoidiemdanh = $this->Item['diemcoach'];
						}
						
						$diemlophoc = 0;
						if(isset($this->Item['diemlophoc'])){
							$diemlophoc = $this->Item['diemlophoc'];
						}
						
						
						?>
						<?php 
						$diemdauvaoinput 			= $this->formText ('diemdauvao', $diemdauvao, array ('class' => 'txtmedium') );
						$diemdaurainput 			= $this->formText ('diemdaura', $diemdaura, array ('class' => 'txtmedium') );
						$sobuoidiemdanhinput 		= $this->formText ('sobuoidiemdanh', $sobuoidiemdanh,array ('class' => 'txtmedium') );
						
						$diemgiuaky		 			= $this->formText ('diemgiuaky', $diemgiuaky, array ('class' => 'txtmedium') );
						$diemgiaovien	 			= $this->formText ('diemgiaovien', $diemgiaovien, array ('class' => 'txtmedium') );
						$diemcoach			 		= $this->formText ('diemcoach', $diemcoach,array ('class' => 'txtmedium') );
						
						$diemlophoc		 			= $this->formText ('diemlophoc', $diemlophoc, array ('class' => 'txtmedium') );
						
						?>
						
						
						<table class="tbl tbl_info">
								<tr>
									<td class="label">Điểm đầu vào:</td>
									<td><?php echo $diemdauvaoinput; ?></td>
									
								</tr>
								<tr>
									<td class="label">Điểm giữa kỳ:</td>
									<td><?php echo $diemgiuaky; ?></td>
								</tr>
								<tr>
									<td class="label">Điểm đầu ra:</td>
									<td><?php echo $diemdaurainput; ?></td>
								</tr>
								
								<tr>
									<td class="label">Điểm giáo viên:</td>
									<td><?php echo $diemgiaovien; ?></td>
								</tr>
								<tr>
									<td class="label">Điểm cho Coach:</td>
									<td><?php echo $diemcoach; ?></td>
									
								</tr>
								<tr>
									<td class="label">Điểm lớp học:</td>
									<td><?php echo $diemlophoc; ?></td>
								</tr>
								<tr>
									<td class="label">Số buổi điểm danh:</td>
									<td><?php echo $sobuoidiemdanhinput; ?></td>
								</tr>
							</table>
						
					</div>
					
				</div>
			</div>
		</form>
	</div>	
</div>
<div class="clr"></div>
